package kkb.IOTest;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

//文件输入流   转换流
public class OutputStreamWriterTest {

    public static void main(String[] args) throws IOException {

        //文件字节输入流
        FileOutputStream fileOutputStream = new FileOutputStream("D://fileoutputstreamwriter.txt");

        //输入字节 转换 字符流
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);
        outputStreamWriter.write("第一课输入字节转换字符流，字符流写入");
        outputStreamWriter.close();
    }
}
